<template>
  <div>
    <div class="main_header">
      <!-- <i class="back_icon" @click="goBack"></i> -->
      <div class="content">{{ title || '' }}</div>
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  // eslint-disable-next-line
  name: 'Declare',
  props: {
    title: {
      type: String,
      default: '',
    },
  },
  data() {
    return {};
  },
  methods: {
    goBack() {
      history.go(-1);
    },
  },
};
</script>

<style scoped>
.main_header {
  width: 100%;
  height: 50px;
  color: #333;
  font-size: 16px;
  position: relative;
  background-color: #fff;
}
.main_header .back_icon {
  width: 20px;
  height: 20px;
  background: url('../../assets/image/left_arrow.png') no-repeat;
  background-size: 100% 100%;
  position: absolute;
  left: 10px;
  top: 15px;
  cursor: pointer;
}
.main_header .content {
  width: 100%;
  height: 50px;
  line-height: 50px;
  text-align: center;
}
</style>